<?php
class StoreOrderDetail extends StoreAppModel {
	var $name = 'StoreOrderDetail';
	var $displayField = 'id';
	var $validate = array(
		'order_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'user_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'product_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed


	
//	var $belongsTo = array(
//		'StoreOrder' => array(
//			'className' => 'StoreOrder',
//			'foreignKey' => 'order_id',
//			'conditions' => '',
//			'fields' => '',
//			'order' => ''
//		),
//		'User' => array(
//			'className' => 'User',
//			'foreignKey' => 'user_id',
//			'conditions' => '',
//			'fields' => '',
//			'order' => ''
//		),
//		'StoreProduct' => array(
//			'className' => 'StoreProduct',
//			'foreignKey' => 'product_id',
//			'conditions' => '',
//			'fields' => '',
//			'order' => ''
//		),
//		'StoreTax' => array(
//			'className' => 'StoreTax',
//			'foreignKey' => 'tax_id',
//			'conditions' => '',
//			'fields' => '',
//			'order' => ''
//		),
//		'StoreUnit' => array(
//			'className' => 'StoreUnit',
//			'foreignKey' => 'unit_id',
//			'conditions' => '',
//			'fields' => '',
//			'order' => ''
//		),
//		'StoreType' => array(
//			'className' => 'StoreType',
//			'foreignKey' => 'type_id',
//			'conditions' => '',
//			'fields' => '',
//			'order' => ''
//		)
//	);
}
?>